#ifndef JABSTRACTINPUTPANEL_P_H
#define JABSTRACTINPUTPANEL_P_H

#include "jabstractinputpanel.h"

namespace QTE
{

class JVKButton;

class Q_DECL_HIDDEN JAbstractInputPanelPrivate : public QObject
{
	Q_OBJECT

public:
	JAbstractInputPanelPrivate();
	virtual ~JAbstractInputPanelPrivate();
	virtual void init(JAbstractInputPanel *q_ptr);

public:
	virtual QString buttonNamePrefix() const;
	virtual void layoutAdaptation(qreal wRatio, qreal hRatio);

protected:
	void timerEvent(QTimerEvent *event) override;
	bool eventFilter(QObject *watched, QEvent *event) override;

private:
	void mapperInit();

public:
	friend class JAbstractInputPanel;
	JAbstractInputPanel *q_ptr;

	JVKButton *m_backSpaceButton;
	QSize m_lastSize;

	bool m_quickBackSpace = false;
	int m_timerID = -1;
};

} //namespace QTE


#endif //JABSTRACTINPUTPANEL_P_H
